class Test {
	void m1() throws Exception {
		try {
			m2();
		}
		catch(Exception ex) {
			throw new Exception("m1 exception", ex);
		}
	}

	void m2() throws Exception {
		throw new Exception("m2 exception");
	}
}

class Main {
	public static void main(String[] args) {
		Test t=new Test();
		try {
			t.m1();
		}
		catch(Exception ex) {
			ex.printStackTrace();
		}
	}
}
